Enumerators of type EventKind specify the kind of event described by an event record or posted with PPostEvent (PPostEvent) or PostEvent (PostEvent) .
typedef UInt16 EventKind; /* event kinds */
enum {
/* event codes */
nullEvent = 0, /* no other pending events */
mouseDown = 1, /* mouse button pressed */
mouseUp = 2, /* mouse button released */
keyDown = 3, /* key pressed */
keyUp = 4, /* key released */
autoKey = 5, /* key repeatedly held down */
updateEvt = 6, /* window needs updating */
diskEvt = 7, /* disk inserted */
activateEvt = 8, /* activate/deactivate window */
osEvt = 15 /* operating-system event
/* (suspend, resume, or
/* mouse-moved) */
kHighLevelEvent = 23 /* high-level event */
/*message codes for operating-system events */
mouseMovedMessage = 0x00FA, /* mouse-moved event */
suspendResumeMessage = 0x0001, /* suspend or resume event */
/*flags for suspend and resume events */
resumeFlag = 1, /* resume event */
convertClipboardFlag = 2, /* Clipboard conversion
/* required */
};
Note that in System 7, event kinds with the values 9 through 14 are undefined and reserved for future use by Apple. All other values for the what field are also reserved for use by Apple.
For information about the use of these enumerators in the event record, see "The Event Record" .